import request from "@/utils/request";

// 分页查询列表操作
export function page(query) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/calledBlockChainCall/blockChainList",
    method: "get",
    params: query
  });
}


// 分页查询列表操作
export function pushAgain(args,functionName,requestMode) {
  let a = JSON.stringify(args); 
  let map = {};
  map.args = args;
  map.functionName = functionName;
  map.requestMode =requestMode;
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/calledBlockChainCall/pushAgainBlockChain",
    method: "post",
    data:map
  });
}



// 分页查询列表操作
export function batchPublishByIds(ids) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      "/calledBlockChainCall/batchPushAgainBlockChain?ids="+ids,
    method: "get"
  });
}
